package cn.b0x0.users8001.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author SomUrim
 * @version 1.0
 * @Description 描述
 * @data 2021/2/7
 */
@RestController
public class UserController {

    @GetMapping("/user/getproduct")
    public String getProduct(){
        RestTemplate restTemplate=new RestTemplate();
        return restTemplate.getForObject("http://127.0.0.1:8002/product/getproduct",String.class);
    }
}
